class PropertyEnumerable < ActiveRecord::Base
  belongs_to :enumerable, :polymorphic => true

  belongs_to :property_enum_group

  accepts_nested_attributes_for :property_enum_group, :allow_destroy => true
  
  alias new_property_enum_group property_enum_group
  def property_enum_group
    new_property_enum_group || build_property_enum_group
  end
end
